export function sessionGet(){
    let json = sessionStorage.getItem('user');
    let user = JSON.parse(json);
    return user;
}
export function sessionSet(user){
    let json = JSON.stringify(user)
    sessionStorage.setItem('user',json);

}

export function sessionTokenSet(token){
    sessionStorage.setItem('token',token);

}

export function sessionTokenGet(){
    return sessionStorage.getItem('token');

}
